Using The International Utilities Package Routines
Using The International Utilities Package Routines
The International Utilities Package is part of the System file. It has the
resource type 'PACK' and resource ID 6. This package contains code that uses
the information in the international resources to handle string comparison and
the presentation of time, currency, and numbers around the world. These vary
from script to script, language to language, and region to region, and your
application should take advantage of the Macintosh Operating System's ability
to present this information in the correct format.
The International Utilities Package works in conjunction with the
Script Manager. Formatting options provide flexibility in specifying
exactly how dates and times are to be displayed. The string comparison
capabilities handle non-Roman writing systems, such as Arabic and Japanese.
For more information about packages in general, see the section entitled
Package Manager.
You need to use the International Utilities Package to enable your
application to run in regions other than your own.
The following in the International Utilities Package enhancements are
available with system software version 7.0. You can now
obtain tables from the 'itl2' and 'itl4' resources
use application-supplied 'itl2' and 'itl4' resources more easily
specify resource handles explicitly for additional routines
determine the interscript sorting order
use special script and language codes with the new routines
Brief de scriptions of the routines and features appear in the section,
Overview of the Intl Utils Package Routines.
With system software version 7.0, the new IUScriptOrder, IULangOrder,
IUStringOrder, IUTextOrder, and IUGetItlTable routines accept special
script or language codes. These script and language codes facilitate the process
of sorting text between scripts and languages. For these routines, system
software version 7.0 has defined these new types: ScriptCode and LangCode.
A valid ScriptCode type can be an integer in the range 0-64 that explicitly
indicates a particular script, or it can be a negative value with a special
meaning. A valid LangCode type can be a nonnegative integer that explicitly
indicates a particular language, or it can be a negative value with a special
meaning.